package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.util.Collection;
import java.util.Objects;

@Entity
@Table(name = "qmenus", schema = "springboot", catalog = "")
public class QmenusEntity {
    private Integer menusId;
    private String menusName;
    private String menusIcon;
    private String menusDesc;
    private Collection<QmenuFrom> chirmenulist;

    @Id
    @Column(name = "menus_id")
    public Integer getMenusId() {
        return menusId;
    }

    public void setMenusId(Integer menusId) {
        this.menusId = menusId;
    }

    @Basic
    @Column(name = "menus_name")
    public String getMenusName() {
        return menusName;
    }

    public void setMenusName(String menusName) {
        this.menusName = menusName;
    }

    @Basic
    @Column(name = "menus_icon")
    public String getMenusIcon() {
        return menusIcon;
    }

    public void setMenusIcon(String menusIcon) {
        this.menusIcon = menusIcon;
    }

    @Basic
    @Column(name = "menus_desc")
    public String getMenusDesc() {
        return menusDesc;
    }

    public void setMenusDesc(String menusDesc) {
        this.menusDesc = menusDesc;
    }



    @OneToMany(mappedBy = "menusId")
    public Collection<QmenuFrom> getChirmenulist() {
        return chirmenulist;
    }

    public void setChirmenulist(Collection<QmenuFrom> chirmenulist) {
        this.chirmenulist = chirmenulist;
    }
}
